#ifndef _BSP_USART_H_
#define _BSP_USART_H_


#include "stm32f10x.h"
//C库
#include <stdarg.h>
#include <string.h>
#include <stdio.h>

#define USART_DEBUG		USART1		//调试打印所使用的串口组


void Usart1_Init(unsigned int baud);

void Usart2_Init(unsigned int baud);

void Usart_SendString(USART_TypeDef *USARTx, unsigned char *str, unsigned short len);

void UsartPrintf(USART_TypeDef *USARTx, char *fmt,...);
int fputc(int ch, FILE *stream);
#endif
